package com.jeecms.wicool.manager.activities.impl;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.jeecms.common.page.Pagination;
import com.jeecms.wicool.dao.activities.ActivitiesDao;
import com.jeecms.wicool.entity.activities.Activities;
import com.jeecms.wicool.manager.activities.ActivitiesMng;

public class ActivitiesMngImpl implements ActivitiesMng {

	@Autowired
	private ActivitiesDao dao;
	
	@Override
	public Pagination getPage(String title, Date publishTime, int pageNo,
			int pageSize) {
		// TODO Auto-generated method stub
		Pagination page= dao.getPage(title, publishTime, pageNo, pageSize);
		return page;
	}

	@Override
	public Activities findById(Integer id) {
		// TODO Auto-generated method stub
		return dao.findById(id);
	}

	@Override
	public Activities update(Activities bean) {
		// TODO Auto-generated method stub
		
		return dao.update(bean);
	}

	@Override
	public Activities save(Activities bean) {
		// TODO Auto-generated method stub
		return dao.save(bean);
	}

	@Override
	public Activities deleteById(Integer id) {
		// TODO Auto-generated method stub
		return dao.deleteById(id);
	}

	@Override
	public ArrayList<Activities> deleteByIds(Integer[] ids) {
		// TODO Auto-generated method stub
		return dao.deleteByIds(ids);
	}

	@Override
	public List<Activities> getAll(Activities user) {
		// TODO Auto-generated method stub
		return null;
	}

	
}
